    //
// Created by d on 2021/6/9.
//

#include <iostream>

using namespace std;
//可以设置模板函数为inline函数
template<class T>
inline T  max(T x, T y){
    if(x > y) return x;
    return y;
}

int main(){
    void (*func)(int);
    func = [](int x){
        cout << "func called:" << endl;
    };

    func(12);
    cout << "Hello World!" << endl;

    return 0;
}